package dao.customerDao;

import dao.BaseDao;
import dao.DaoException;
import model.Customer;

import java.util.ArrayList;

public interface CustomerDao extends BaseDao {
    boolean addCustomer(Customer customer) throws DaoException;
    Customer findById(int id) throws DaoException;
    ArrayList<Customer> findCustomerByPage(int pageNum, int pageSize) throws DaoException;
    int findCustomerNum() throws DaoException;
    boolean deleteCustomerById(int id) throws DaoException;
}
